import {
  UPDATA_PAGE_INIT,
  UPDATA_AJAX_COUNT
} from './mutation-type'

const mutations = {
  //是否是第一次加载页面
  UPDATA_PAGE_INIT (state, pageInit) {
    state.pageInit = pageInit
  },
  //记录有几个ajx请求正在执行
  UPDATA_AJAX_COUNT (state, count) {
    state.ajaxCount = state.ajaxCount + count
  }
}
export default mutations
